import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileReader;
import java.io.IOException;


public class Vergleichen 
{
	public void ladeDatei()
	{
    File file = new File("C:\\Users\\Lex\\temp1.txt"); 
     
    try { 
        BufferedReader in = new BufferedReader(new FileReader(file)); 
        String zeile = null; 
        while ((zeile = in.readLine()) != null) { 
            System.out.println("Gelesene Zeile: " + zeile); 
        } 
        in.close(); 
    } catch (IOException e) { 
        e.printStackTrace(); 
    } 
	} 
	
	
}
